%h1 Listing users

= link_to 'Admin Home Page', "/admin/"

%table.table
  %tr
    %th ID
    %th 姓名
    %th 邮箱
    %th 电话
    %th Token

  - @users.each do |user|
    %tr
      %td= user.username
      %td= user.display_name
      %td= user.email
      %td= user.phone
      %td= user.token
      %td
        = link_to 'Show', user
        = link_to 'Edit', edit_user_path(user)
        = link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' }

%br

= link_to 'New User', new_user_path
